unit dbcASESQLExec;
// Database Comparer VCL v.3.0
// Copyright (C) 1998-2006, by Boris Loboda
// www.CleverComponents.com
{$I Comparer.INC}

// Sybase ASE SQLExec.

// 17.02.2006 (BL)
// - Initial code.

interface

Uses
  {$IFNDEF FPC}Windows, {$ENDIF}SysUtils, Classes,
  dbcSQL_Exec, dbcDBEngine, dbcASEParser, dbcTypes;

type
  TASESQLExec = class(TSQLExec)
  protected
    fParser: TASEParser;
    procedure AddStatement(Sender: TObject;
                           aText: String;
                           aTyp: TStatType;
                           aObjName: String;
                           aObjType: TDbObject;
                           aOperation: TDbOperation;
                           aOwnName: String;
                           var Statement: TObject);
  public
    constructor Create(aOwner: TComponent); override;
    destructor Destroy; override;
    Function ExecuteScript(): Boolean; override;
    procedure LoadScript(aScript: TStrings); override;
  published
    property DBCConnection;
    property ASEServerOptions;
    property BreakOnError;
    property OnLogNextLine;
    property OnProgressUpdate;
    property OnErrorMessage;
    property OnBeforeStatementExecute;
    property OnAfterStatementExecute;
    property OnStatementCreate;
    property OnStatementAdd;
    {$ifdef Delphi2009}
    property Encode;
    {$endif}
  end;

implementation

//The full source code is available on purchasing the product

end.
